package cn.powertime.evaluation.file.storage;

import cn.powertime.evaluation.file.storage.config.DefaultDiskProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author ZYW
 * @version v1.0.0
 * @date 2019-08-23 13:52
 */
@Configuration
@ConditionalOnProperty("noopsyche.resource.default.enabled")
public class DefaultAutoConfiguration {

    @Bean
    public FileStorage fileStorage(DefaultDiskProperties properties) {
        return new DefaultFileStorage(properties);
    }
}
